package com.dzl.express;

import com.dzl.base.controller.BaseController;
import com.dzl.express.pojo.WelfareExpress;
import com.dzl.express.service.WelfareExpressService;
import com.dzl.util.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * (WelfareExpress)表控制层
 * @author caobucao
 * @date 2021-05-31 10:19:34
 */
@RestController
@RequestMapping("/welfareExpress")
public class WelfareExpressController extends BaseController {

    @Autowired
    private WelfareExpressService service;

    /**
     * 获取全部支持的物流公司
     * @date 2021/5/31 10:21
     * @author caobucao
     * @param
     * @return com.dzl.util.JsonResult<java.util.List<com.dzl.express.pojo.WelfareExpress>>
     */
    @GetMapping("getExpressList")
    public JsonResult<List<WelfareExpress>> getExpressList() {
        WelfareExpress welfareExpress = new WelfareExpress();
        welfareExpress.setState(1);
        return JsonResult.success(service.select(welfareExpress));
    }

}
